#ifndef CMM_FEEDBACK_H
#define CMM_FEEDBACK_H
#include <iostream>
#include <string>
#include "./definition.h"
#include "./throw_error.h"
void console_feed(int argc,char *argv[]){
	std::string str,other_command;
	for(int point=1;point<argc;point++){
		str=argv[point];
		if(str=="--version"||str=="--V"){
			printf("C-- ");
			std::cout<<Version;
			exit(0);
		}
		else if(str=="--help"){
			printf("For more information, see GitHub or Gitee.");
			exit(0);
		}
		else if(str=="--nw"){
			other_command="start cmd /c ";
			other_command+=argv[0];
			other_command+=" ";
			other_command+=argv[++point];
			system(other_command.c_str());
			exit(0);
		}
		else if(str=="--@)@!?)!?)%"){
			printf("2021/04/05");
			exit(0);
		}
		else prog_error(-1,6);
	}
}
#endif /*!H*/
